﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Infrastructure;
using Enterprise.Model.CaiWu;
using Enterprise.Service.Caiwubu;
using Enterprise.Control;
namespace Enterprise.UI.Web.Modules.CaiWuBu
{
    public partial class CwTypeIndex : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CreateBT.AddButton("back.gif", "返回", "Index.aspx", Utility.PopedomType.List, HeadMenu1);
                OnBindData();
            }
        }

        private void OnBindData()
        {
            CwTypeService ctService = new CwTypeService();
            var list = ctService.CwTypeList();
            GridView1.DataSource = list;
            GridView1.DataBind();
        }

    }
}